package cn.jbolt.ai.app;

public enum AppPublishType {

    WEB(1,"网页发布"),

    API(2,"api"),

    ;

    private Integer code;

    private String name;

    AppPublishType(Integer value, String name) {
        this.code = value;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static AppPublishType getByValue(Integer value) {
        for (AppPublishType type : values()) {
            if (type.getCode().equals(value)) {
                return type;
            }
        }
        return null;
    }



}
